<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>
			<include file="Public/sidebar"/>
				<div class="main-content">
                    <include file="Public/breadcrumbs"/>
					<div class="page-content">
                    	<include file="Public/set"/>
						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->

								<div class="space-6"></div>

								<div class="row">
									<div class="col-sm-10 col-sm-offset-1">
										<div class="widget-box transparent invoice-box">
											<div class="widget-header widget-header-large">
												<h3 class="grey lighter pull-left position-relative">
													<i class="icon-leaf green"></i>
													订单详情
												</h3>

												<div class="widget-toolbar no-border invoice-info">
													<span class="invoice-info-label">订单编号:</span>
													<span class="red">{$val.ref}</span>
													<br />
													<span class="invoice-info-label">订单日期:</span>
													<span class="blue">{$val.date_order}</span>
												</div>
												<div class="widget-toolbar hidden-480">
													<a href="javascript:printme()" target="_self">
														<i class="icon-print">打印订单</i>
													</a>
												</div>
                                                <script> 
                                                    function printme(){ 
                                                        document.body.innerHTML=document.getElementById('widget-body').innerHTML
                                                        window.print(); 
                                                    } 
                                                </script> 
											</div>
											<div class="widget-body" id="widget-body">
                                            	<style>
													.contect_list_info{ width:93%; margin-top:10px; }
													.contect_list_info dl{ width:100%; float:left;font-size:14px; margin:0px; border-bottom:1px dashed #ccc;word-break: break-all; word-wrap:break-word;-webkit-box-flex: 1; overflow:hidden;}
													.contect_list_info dl dt{ width:100px; float:left; color:#666;line-height:230%; text-align:right}
													.contect_list_info dl dd{color:#999;line-height:220%; text-indent:1em;}
													dt+dd{ margin-top:0px !important;}
													.list_width{ width:50% !important; }
													.am-table>tbody>tr>td, .am-table>tbody>tr>th, .am-table>tfoot>tr>td, .am-table>tfoot>tr>th, .am-table>thead>tr>td, .am-table>thead>tr>th{vertical-align:middle !important}
												</style>
												<div class="widget-main padding-24">
													<div class="row">
														<div class="col-sm-6">
															<div class="row">
																<div class="col-xs-11 label label-lg label-info arrowed-in arrowed-right">
																	<b>订单基本信息</b>
																</div>
															</div>

															<div class='contect_list_info'>
																<dl class="list_width">
																		<dt>来源平台：</dt>
																	<dd><empty name="platform_name">平台订单<else />{$platform_name}</empty></dd>
																</dl>
																<dl class="list_width">
																		<dt>创建时间：</dt>
																	<dd>&nbsp;{$val.create_time}</dd>
																</dl>
																<span style=" clear:both"></span>
															 </div>
														</div><!-- /span -->

														<div class="col-sm-6">
															<div class="row">
																<div class="col-xs-11 label label-lg label-success arrowed-in arrowed-right">
																	<b>收货人信息</b>
																</div>
															</div>
															
															<div class='contect_list_info'>
																<?php $receive_info = explode('|' , $val['receive_info']); ?>
																<dl class="list_width">
																		<dt>收货人姓名：</dt>
																	<dd>&nbsp;{$receive_info[0]}</dd>
																</dl>
																<dl class="list_width">
																		<dt>联系电话：</dt>
																	<dd>&nbsp;{$receive_info[2]}</dd>
																</dl>
																<dl class="list_width">
																		<dt>身份证号码：</dt>
																	<dd>{$receive_info[1]}</dd>
																</dl>
																<dl class="list_width">
																		<dt>地区：</dt>
																	<dd>{$receive_info[3]} - {$receive_info[4]} - {$receive_info[5]} - {$receive_info[6]}</dd>
																</dl>
																<dl>
																		<dt>收货信息：</dt>
																	<dd>&nbsp;{$receive_info[7]}</dd>
																</dl>
															</div>
														</div><!-- /span -->
													</div><!-- row -->

													<div class="space"></div>

													<div>
														<table class="table table-striped table-bordered">
															<thead>
																<tr>
																		<th>en13码</th>
																		<th>名称</th>
																		<th>单价</th>
																		<th>供货价</th>
																		<th>购买数量</th>
																		<th>商品总价</th>
																		<th>供应商</th>
																		<th>快递费</th>
																		<th>支付总金额</th>
																		<th>是否发货</th>
																		<th>物流公司</th>
																		<th>物流单号</th>
																		<th>发货时间</th>
																		<th>支付状态</th>
																</tr>
															</thead>

															<tbody>
                                                            <volist name="val.order_customer_line" id="vo">
																<foreach name="vo.list" item="vos" key="k">
																<?php if( $k <= 0 ) : ?>
																	<tr>
																		<td>{$vos.earn13}</td>
																		<td>{$vos.name}</td>
																		<td>{$vos.price}</td>
																		<td>{$vos.supply_price}</td>
																		<td>{$vos.num}</td>
																		<td><?php echo $vos['supply_price'] * $vos['num']; ?></td>
																		<td rowspan="<?php echo count($vo['list']); ?>" style="vertical-align: middle">{$vo.supply_name}</td>
																		<td rowspan="<?php echo count($vo['list']); ?>" style="vertical-align: middle">{$vo.fee}</td>
																		<td rowspan="<?php echo count($vo['list']); ?>" style="vertical-align: middle">{$vo.price_total}</td>
																		<td rowspan="<?php echo count($vo['list']); ?>" style="vertical-align: middle">
																		<empty name="vo.express_name">
																		未发货
																		<else />
																		已发货
																		</empty>
																		</td>
																		<empty name="vo.express_name">
																		<td rowspan="<?php echo count($vo['list']); ?>" style="vertical-align: middle">-</td>
																		<td rowspan="<?php echo count($vo['list']); ?>" style="vertical-align: middle">-</td>
																		<td rowspan="<?php echo count($vo['list']); ?>" style="vertical-align: middle">-</td>
																		<else />
																		<td rowspan="<?php echo count($vo['list']); ?>" style="vertical-align: middle">{$vo.express_name}</td>
																		<td rowspan="<?php echo count($vo['list']); ?>" style="vertical-align: middle">{$vo.express_no}</td>
																		<td rowspan="<?php echo count($vo['list']); ?>" style="vertical-align: middle">{:date('Y-m-d H:i:s' , $vo['send_time'])}</td>
																		</empty>
																		<td rowspan="<?php echo count($vo['list']); ?>" style="vertical-align: middle"><eq name="val.status" value="1"><switch name="vo.pay_status"><case value="0">未支付</case><case value="1">已支付</case><case value="2">退款失败</case><case value="3">退款成功</case></switch><else />--</eq></td>
																	</tr>
																<?php else : ?>
																	<tr>
																		<td>{$vos.earn13}</td>
																		<td>{$vos.name}</td>
																		<td>{$vos.price}</td>
																		<td>{$vos.supply_price}</td>
																		<td>{$vos.num}</td>
																		<td><?php echo $vos['supply_price'] * $vos['num']; ?></td>
																	</tr>
																<?php endif; ?>
																</foreach>
                                                            </volist>
															</tbody>
														</table>
													</div>
													<div class="hr hr8 hr-double hr-dotted"></div>
													<div class="row">
														<div class="col-sm-5 pull-right">
															<h4 class="pull-right" style="line-height:140%;">
																
                                                                <span>快递邮费:</span>
																<span style="color: #478fca !important;">
																	<eq name="val.delivery_fee" value="0"> 包邮<else /> ${$val.delivery_fee} 元</eq><br>
																	<neq name="val.discount" value="0">优惠金额 ： ${$val.discount}<br></neq></span>
																<span class="invoice-info-label">订单总价:</span>
																<span style="color: #dd5a43 !important;">${$val.amount_total} 元</span> 
															</h4>
														</div>
													</div>
													<style>
                                                    	.pay_ment_info{ width:100%; }
														.pay_ment_info dl dt{ width:100%; height:40px; line-height:40px; font-size:16px; border-bottom:1px solid #ccc; text-indent:10px;}
														.pay_ment_info dl dd{ float:left; line-height:220%; width:100%; text-indent:20px; color:#666 }
														.pay_ment_info dl dd span{ color:#333; }
                                                    </style>
													<!--<div class="space-6"></div>
													<div class="pay_ment_info">
                                                    	<dl>
                                                        	<dt>支付信息</dt>
                                                            <dd><span>是否支付：</span><eq name="val.state" value="0"><span style="color:red">未支付</span><else />已支付</eq></dd>
                                                            <eq name="val.state" value="1">
                                                            <dd><span>支付方式：</span>
                                                            	<switch name="val.order_payment.payment_account">
                                                                	<case value="weixin">微信</case>
                                                                	<case value="alipay">支付宝</case>
                                                                	<case value="pcupacp">银联</case>
                                                                </switch>
                                                            </dd>
                                                            <dd><span>支付金额：</span>{$val.order_payment.payamount}</dd>
                                                            <dd><span>支付流水号：</span>{$val.order_payment.payment_no}</dd>
                                                            <dd><span>支付成功时间：</span>{$val.order_payment.create_time}</dd>
                                                            </eq>
                                                        </dl>
                                                    </div>-->
												</div>
											</div>
										</div>
									</div>
								</div>

								<!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div><!-- /.main-content -->
			</div><!-- /.main-container-inner -->
		</div>
        <include file="Public/footer"/>
        <include file="Public/footerjs"/>
</body>
</html>
